<!--
 * @description: 
 * @Author: vikingShip
 * @Date: 2021-11-03 11:36:25
 * @LastEditors: vikingShip
 * @LastEditTime: 2021-12-03 10:00:03
-->
<template>
  <view class="page">
    <view class="page__box  van-search">
      <view class="page__header  " @tap="toPop">
        <u-icon name="search" class="page__header__icon"></u-icon>
        {{query.name?query.name:"请输入关键字搜索"}}
      </view>
    </view>
  </view>
</template>

<script lang=ts>
  import {
    Component,
    Vue
  } from 'vue-property-decorator'

  @Component({})
  export default class SearchPlugin extends Vue {
    name: String = ""
    show: Boolean = false
    query: {
      name: "",
    }

    /**
     * 跳转搜索二级页面
     */
    toPop() {
      uni.navigateTo({
        url: "/subcontract/pages/Search/Search",
      });
    }
  }
</script>

<style lang="scss" scoped>
  .page {
    &__header {
      border-radius: 40px;
      height: 70rpx;
      display: inline-block;
      display: flex;
      align-items: center;
      background-color: #f8f8f8;
      font-size: 14px;
      width: 100%;

      &__icon {
        font-size: 14px;
        margin: 0 10px;
      }
    }

    &__box {
      background: #fff;
      height: 46px;
      width: 100%;
      padding: 5px 20px;
    }

    .page__pop--search {
      color: #fff;
      font-weight: 800;
      margin-right: 10px;
      background: #fe5468;
      padding: 0 20px;
      border-radius: 20px;
    }

    .page__item {
      width: 33%;
      padding: 7px 10px;
      float: left;
      text-align: center;

      &--word {
        display: block;
        width: 80%;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        border-radius: 20px;
        background: #f5f5f5;
        font-size: 14px;
        padding: 10px 10px;
        text-align: center;
      }
    }
  }
</style>